package com.usian.controller;

import com.usian.service.ItemCategoryService;
import com.usian.utils.CatResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/service/itemCategory")
public class ItemCategoryServiceController {
    @Resource
    ItemCategoryService itemCategoryService;
    //查询首页商品分类
    @GetMapping("/selectItemCategoryAll")
    CatResult selectItemCategoryAll(){
        return itemCategoryService.selectItemCategoryAll();
    }
}
